<?php

    class x_actius {
    	protected $db_man;
    	protected $select = "select id_actiu, clau, mac, dalta, dbaixa from x_actius";
    	protected $delete = "delete from x_actius where clau='%s'";
    	
    	function x_actius($dbm) {
    		$this->db_man = $dbm;
    	}
    	
    	function get_actius() {
    		return ($this->db_man->do_query($this->select));
    	}
    	
    	function delete_actiu($clau) {
    		return ($this->db_man->do_dml(sprintf($this->delete, $clau)));
    	}
    	
    }

?>